package br.com.obardavez.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

import br.com.obardavez.base.entity.BaseEntity;

@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
@Entity
@Table(name = "PROGRAMACAO", schema = "OBARDAVEZ")
@XmlRootElement
public class Programacao implements BaseEntity {
	
	private static final long serialVersionUID = 1L;

	private Long id;
	
	private Long idBar;
	
	private String data;
	
	private String horario;
	
	private String atracao;
	
	private String info;
	
	private boolean moderado;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name = "ID")
	@XmlElement
	public Long getId() {
		return id;
	}

	@Column(name = "IDBAR")
	@XmlElement
	public Long getIdBar() {
		return idBar;
	}
	
	@Column(name = "DATA")
	@XmlElement
	public String getData() {
		return data;
	}
	
	@Column(name = "HORARIO")
	@XmlElement
	public String getHorario() {
		return horario;
	}

	@Column(name = "ATRACAO")
	@XmlElement
	public String getAtracao() {
		return atracao;
	}
	
	@Column(name = "INFO")
	@XmlElement
	public String getInfo() {
		return info;
	}
	
	@Column(name = "MODERADO")
	@XmlElement
	public boolean getModerado() {
		return moderado;
	}
	
	public void setId(Long id) {
		this.id = id;
	}

	public void setIdBar(Long idBar) {
		this.idBar = idBar;
	}

	public void setData(String data) {
		this.data = data;
	}

	public void setHorario(String horario) {
		this.horario = horario;
	}

	public void setAtracao(String atracao) {
		this.atracao = atracao;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public void setModerado(boolean moderado) {
		this.moderado = moderado;
	}	
}
